package com.example.demo.dao;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from user_info where delete_flag=0 and user_name= #{username}")
    UserInfo queryuserbyname(String username);

    @Select("select * from user_info")
    List<UserInfo> selectall();
}
